<!--S 主体-->
<div class="main" id="home">
  <!--S 列2-->
  <div class="lay2_row_2">
    <!--S 主页导航-->
    <%= render(:partial => "/shared/profile_nav") %>
    <!--E 主页导航-->
    <!--S 列2_列1-->
    <div class="lay2_r2_r1">
      <!--S 提示框-->
        <div class="tips_2" id="pro_notice">
          <p class="text">
            <%= image_tag "icon.gif", :alt=>"通知", :class=>"icon_news" %> <a href="http://city.qq.com/group/thread.htm#gid=1041850&postid=60&page=1" target="_blank">城市达人QQ图标点亮了！快来下载QQ2010版本，点亮你的城市达人图标吧！</a>
          </p>
          <button class="close icon_del" title="关闭"><span>关闭</span></button>
        </div>
        <!--E 提示框-->
        <!--S 展示框-->
        <div id="home_show_box" class="mod show_box">
          <!--S Tags-->
          <div class="title bg_1">
            <div class="option_tag">
              <button class="tag_1 c_4 now" onfocus="this.blur()" id="utag_0"><span>配对达人</span></button> <button class="tag_2 c_3" onfocus="this.blur()" id="utag_1"><span>附近的人</span></button> <button class="tag_3 c_3" onfocus="this.blur()" id="utag_2"><span>写日志</span></button> <button class="tag_4 c_3" onfocus="this.blur()" id="utag_3"><span>传照片</span></button>
            </div>
          </div>
          <!--E Tags-->
          <!--S 展示内容-->
          <div class="content" id="ucon_0">
            <ul class="list bor_b_1" id="umlist">
            </ul>
            <div class="text">
              <p class="p1"><span class="c_2">我的交友要求：</span><span id="match_txt"></span> <a href="/user/user2.htm">修改</a></p>
              <p class="p2"><a href="javascript:loadUMList()" onfocus="this.blur()">换一批</a></p>
            </div>
          </div>
          <!--E 展示内容-->
          <!--S 展示内容-->
          <div class="content" id="ucon_1" style="display:none">
            <ul class="list bor_b_1" id="unlist">
            </ul>
            <div class="text">
              <p class="p1"><span class="c_2">我的位置：</span><span id="s_city"></span> <a href="/user/user1.htm">修改</a></p>
              <p class="p2"><a href="javascript:loadUNList()" onfocus="this.blur()">换一批</a></p>
            </div>
          </div>
          <!--E 展示内容-->
          <div style="display:none" id="searchlist_tpl">
          </div>
          <div class="write_blog" id="ucon_2" style="display:none">
            <table border="1" cellspacing="0" cellpadding="0" class="tb_write">
              <thead>
                <tr>
                  <th scope="row">标题：</th>
                  <td><input type="text" size="30" id="blogtitle" />&nbsp;&nbsp;&nbsp;&nbsp;类别：<select class="size1" id="blogcate">加载中...</select></td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <th scope="row">内容：</th>
                  <td>
                    <textarea cols="30" rows="5" id="blogcontent"></textarea>
                    <div class="op_blog">
                      <p class="btn">
                        <button class="bt1_2em" id="sb_blog_btn" onclick="postBlog()">发表</button>
                      </p>
                      <p class="full_edit"><a href="/user/writeblog.htm">切换到高级编辑模式</a></p>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="sand_photo" id="ucon_3">
            <table border="1" cellspacing="0" cellpadding="0" class="tb_write">
              <thead>
                <tr>
                  <th scope="row">选择相册：</th>
                  <td>
                    <select class="size1" id="photocate">加载相册中...
                    </select>
                  </td>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td colspan="2">
                    <div id="photoup"></div>
                  </td>
                </tr>
                <tr>
                  <th scope="row">&nbsp;</th>
                  <td>
                    <div class="op_photo">
                      <p class="btn">
                        <button class="bt1_2em" id="sb_photo_btn" disabled="disabled">上传</button>
                      </p>
                      <p class="full_edit"><a id="photo_up_link" href="javascript:void(0)">切换到高级编辑模式</a></p>
                    </div>
                  </td>
                </tr>
              </tbody>
            </table>
          </div>
        </div>
        <!--S FEED-->
        <div id="home_feed_box" class="mod feed_box">
          <!--S Tags-->
          <div class="title bg_1" id="feed_title">
            <h3>动静</h3>
            <div class="option_tag">
              <button class="tag_1 c_3" onfocus="this.blur()" id="ftag_1" onclick="loadMyFeeds()"><span>我的动静</span></button> <button id="ftag_2" class="tag_3 c_3" onfocus="this.blur()" onclick="loadFFeeds()"><span>好友动静</span></button> <button id="ftag_4" class="tag_3 c_3" onfocus="this.blur()" onclick="loadGFeeds()"><span>兴趣组动静</span></button> <button id="ftag_5" class="tag_4 c_3" onfocus="this.blur()" onclick="loadAFeeds()"><span>活动动静</span></button> <button id="ftag_3" class="tag_5 no_bor c_3" onfocus="this.blur()" onclick="loadPostCommend()"><span>帖子推荐</span></button>
              <!--<a href="javascript:showSettingWin()" class="title_link">设置</a>-->
            </div>
          </div>
          <!--E Tags-->
        </div>
        <!--S 展示框-->
        <div style="display:none" id="feedlist_tpl"><!--
        <ul class="friend_feed">
          <@list@>
                  <li class="list_feed {classext}">
                          <div class="user_img">{photo_block}</div>
                          {feedcontent}
                  </li>
          <@_list@>
        </ul>
          --></div>
        <div style="display:none" id="postcommend_tpl"><!--
        <ul class="blog_tit_list">
          <@list@>
                  <li class="bor_b_1">
                          <p class="city"><a href="/group/gsearch.htm#city={allowcity}">[{city_chn}]</a></p>
                          <p class="blog_tit"><a href="/group/thread.htm#gid={groupID}&postid={postID}" target="_blank">{postTitle}</a></p>
                          <p class="author"><a href="/group/board.htm#gid={groupID}" target="_blank">{groupName}</a></p>
                  </li>
          <@_list@>
        </ul>
          --></div>
    </div>
    <!--E 列2_列1-->
    <!--S 列2_列2-->
    <div class="lay2_r2_r2">
        <div id="app_get_tiket">
          <div class="con"><%=image_tag "icon.gif", :class=>"icon_city_voucher", :alt=>"达人礼物"%> <p>达人券 (<span class="c_1" id="gift_count">0</span>)</p><button type="button" id="gift_today_btn" onfocus="this.blur()" onclick="getSysPresent()">领今日达人券</button></div>
        </div>
      <!--S 信息中心-->
        <div id="home_info_center" class="mod info_center">
          <!--S Tags-->
          <div class="title bg_1">
            <h3>信息中心</h3>
            <a href="/user/infomation.htm" class="title_link">更多</a>
          </div>
          <!--E Tags-->
          <ul class="list" id="ctr_cnt">
            <li>
              <%= image_tag "icon.gif", :class => "icon_news" %><a href="/user/infomation.htm#type=1">系统消息</a>
            </li>
            <li>
              <%= image_tag "icon.gif", :class => "icon_act" %><a href="/user/infomation.htm#type=3">活动消息</a>
            </li>
            <li>
              <%= image_tag "icon.gif", :class => "icon_friend" %><a href="/user/infomation.htm#type=2">好友消息</a>
            </li>
            <li>
              <%= image_tag "icon.gif", :class => "icon_group" %><a href="/user/infomation.htm#type=4">兴趣组邀请</a>
            </li>
          </ul>
        </div>
      <!--E 信息中心-->
      <!--S 最近访客-->
      <%= render(:partial => "visitors") %>
      <!--E 最近访客-->
        <div id="home_may_know" class="mod may_know ">
          <!--S Tags-->
          <div class="title bg_1">
            <h3>可能认识的人</h3>
            <a href="/user/friend.htm#fid=x" class="title_link">更多</a>
          </div>
          <!--E Tags-->
          <ul class="user_list" id="uklist">
          </ul>
        </div>
      <!--E 可能认识的人-->
      <!--S 好友秀-->
      <%= render(:partial => "friends") %>
      <!--E 好友秀-->
    </div>
    <!--S 列2_列2-->
  </div>
  <!--E 列2-->
  <!--S 列1-->
  <div class="lay2_row_1">
    <div class="bor_2 my_photo" id="home_user_img">
      <div class="bor_b_3">
        <p class="user_img" id="user_bigurl">
          <a href="#">
            <a href="#"><%= image_tag member_big_avatar_url(@member), :alt => "#{@member[:nick]}",:width => 200, :height => 200  %></a>
          </a>
        </p>
      </div>
        <ul class="list">
          <li class="list_a"><%=image_tag "icon.gif", :alt => "头像设置", :class => "icon_edit_photo"%><%= link_to "头像设置", new_member_avatar_path(@member) %></li>
          <li class="list_b"><%=image_tag "icon.gif", :alt=>"我的主页", :class=>"icon_homepage" %><%= link_to "我的主页", "/home/space/#{@member[:id]}"%></li>
          <li class="list_a"><%=image_tag "icon.gif", :alt=>"隐私设置", :class=>"icon_set" %><a href="/user/privacy.htm">隐私设置</a></li>
          <li class="list_b"><%=image_tag "icon.gif", :alt=>"编辑资料", :class=>"icon_edit_info" %><%= link_to "编辑资料", edit_member_path(current_accounts.member) %></li>
          <li class="list_a"><%=image_tag "icon.gif", :alt=>"通知设置", :class=>"icon_set" %><a href="/user/noticeset.htm">通知设置</a></li>
          <li class="list_b"><%=image_tag "icon.gif", :alt=>"视频认证", :class=>"icon_video_yes"%><a href="/user/user4.htm">视频认证</a></li>
        </ul>
    </div>
    <!--S 我的动静-->
    <div id="home_info_table" class="bor_2 info_table">
      <!--S 个人资料-->
      <div class="title bg_3">
        <h3>个人资料</h3>
          <%= link_to "修改", edit_member_path(@member), :class=>"title_link"%>
      </div>
      <table class="content" border="0" cellspacing="0" cellpadding="0">
        <tbody>
          <tr>
            <th class="c_2">性别：</th>
            <td id="p_sex_chn"><%= @member[:sex] %></td>
          </tr>
          <tr>
            <th class="c_2">星座：</th>
            <td id="p_astro"><%= astro(@member[:birthday]) if @member[:birthday]%></td>
          </tr>
          <tr>
            <th class="c_2">生日：</th>
            <td id="p_birthday"><%= @member[:birthday] %></td>
          </tr>
          <tr>
            <th class="c_2">血型：</th>
            <td id="p_bloodtype_chn"><%= @member[:blood] %></td>
          </tr>
          <tr>
            <th class="c_2">学校：</th>
            <td id="p_job_chn"><%= @member[:university] %></td>
          </tr>
          <tr>
            <th class="c_2">专业：</th>
            <td id="p_edu_chn"><%= @member[:major] %></td>
          </tr>
        </tbody>
      </table>
    </div>
    <!--E 个人资料-->
    <!--S 我的兴趣活动-->
      <div class="bor_2 my_act" id="home_my_act">
        <!--S 搜索标题-->
        <div class="title bg_3">
          <h3>我的兴趣活动</h3>
          <a href="/user/myAllAct.htm" class="title_link">更多</a>
        </div>
        <ul class="list" id="actlist">
        </ul>
      </div>
      <!--E 我的兴趣活动-->
      <!--S 我的兴趣组-->
      <div class="bor_2 my_group" id="home_my_group">
        <!--S 搜索标题-->
        <div class="title bg_3">
          <h3>我的兴趣组</h3>
          <a href="/user/myAllGroup.htm" class="title_link">更多</a>
        </div>
        <ul class="list" id="grouplist">
        </ul><div style="display:none" id="grouplist_tpl"><!--<@list@><li class="bor_b_1{no_bor}"><a href="/group/board.htm#gid={id}" target="_blank" title="{title}">{title_short}</a></li><@_list@>--></div>
      </div>
    <!--E 我的兴趣组-->
    <!--S 收到的礼物-->
    <div class="mod present_recieve" id="home_present_recieve">
      <!--S Tags-->
      <div class="title bg_1">
        <h3>收到的礼物</h3>
        <a href="/html/giftmain.htm" class="title_link">送礼物</a>
      </div>
      <!--E Tags-->
      <ul class="list" id="gift_us">
      </ul>
    </div>
    <!--E 收到的礼物-->
  </div>
  <!--E 列1-->
</div>
<!--E 主体-->